package com.jy.app.lib.application;

import android.app.Application;
import android.content.Context;
import android.content.res.Configuration;

/**
 * Created by jan on 2016/4/13.
 */
public class BaseApplication extends Application {

    public final static boolean DEBUG_FLAG = true;
    public final static String TAG = "BaseApplication";
    public static BaseApplication mAppContext;
    public static Context appContext;
    private int appId;
    public static String updataTokenURL;
    public static String loginActivity;

    @Override
    public void onCreate() {
        super.onCreate();
        mAppContext = this;
        appContext = getApplicationContext();
    }

    /**
     * 设置tokan获取url
     * @param url
     * @param activity
     */
    public void setTokenAction(String url,String activity){
        updataTokenURL = url;
        loginActivity = activity;
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }

}
